﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;

namespace SpriteSample
{
    class Title_Object: Object
    {
        public Sprite m_pGround;

        public Title_Object(float _posX, float _posY)
            : base(_posX, _posY)
        {
            m_eSpecies = eSpecies.TitleObject;
            
        }

        public override void LoadContent(ContentManager _contentManager)
        {
            m_pGround = new Sprite(ResourceManager.GetInstance().GetSprite("Title Object/ground1"));
            m_currSprite = m_pGround;
            m_vSize.X = m_currSprite.Width;
            m_vSize.Y = m_currSprite.Height;
        }

        public override void Update(GameTime gameTime)
        {
            m_currSprite.Position = m_vPos;
        }

        public override void Render(GameTime gameTime, SpriteBatch _spriteBatch)
        {
            m_currSprite.Draw(_spriteBatch);
        }
    }
}
